package com.leesche.zcsp.node.web.service.impl;

import com.leesche.zcsp.node.web.dao.LPubDeviceDao;
import com.leesche.zcsp.node.web.dao.LpubDevSetParamDao;
import com.leesche.zcsp.node.web.model.LPubDevice;
import com.leesche.zcsp.node.web.model.LPubDeviceCriteria;
import com.leesche.zcsp.node.web.service.BaseService;
import com.leesche.zcsp.node.web.service.LPubDeviceSerice;
import com.leesche.zcsp.node.web.service.impl.data.read.LPubDeviceDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryLPubDeviceCondition;
import com.leesche.zcsp.node.web.vo.v2.OnLineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by dennies yang  on 2017-01-20.
 */
@Service
@Transactional
public class LPubDeviceSericeImpl  extends BaseServiceImpl<LPubDevice, LPubDeviceCriteria,LPubDeviceDto,QueryLPubDeviceCondition, Long>
implements LPubDeviceSerice{
    @Autowired
    private LPubDeviceDao lPubDeviceDao;

    @Autowired
    public void setBaseDao( LPubDeviceDao lPubDeviceDao) {
        super.setBaseDao(lPubDeviceDao);
    }


    @Override
    public List<OnLineVo> countOnline(QueryLPubDeviceCondition condition) {
        return lPubDeviceDao.countOnline(condition);
    }
}
